package com.gxa.core.recycling.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author xhy
 * @Date 2021/11/29 11:20
 */
@Data
/*@ToString(exclude = {"salt","longType","lastLoginTime",""})*/
@NoArgsConstructor
@AllArgsConstructor
//小区管理表
@Table(name = "communitymanage")
@Entity
public class CommunityManage implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;
    @Column(name = "name")
    //名称
    private String name;
    @Column(name = "provinces")
    //省市区
    private String provinces;
    @Column(name = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    //创建时间
    private Date createTime;
    @Column(name = "remarks")
    //备注信息
    private String remarks;
    @Column(name = "state")
    //审核状态
    private Boolean state;
    @Column(name = "allocateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    //分配时间
    private Date allocateTime;
}
